<ul class="nav navbar-nav" id="dhl-ul">
    <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
           aria-expanded="false">项目{% if request.tracer.project %}({{ request.tracer.project.name }}){% endif %}<span
                class="caret"></span></a>
        <ul class="dropdown-menu">
            <li><a href="/project/list/">项目列表</a></li>
            <li role="separator" class="divider"></li>
            <li><i class="fa fa-list" aria-hidden="true" style="margin: 5px; margin-right: 5px"></i>我创建的项目</li>

            {% if project_menu %}
                {% for item in project_menu %}
                    <li><a href="{% url 'dashboard' project_id=item.id %}">{{ item.name }}</a></li>
                {% endfor %}
                <li role="separator" class="divider"></li>
            {% endif %}
            {% if project_user_menu %}
                <li><i class="fa fa-handshake-o" aria-hidden="true" style="margin: 5px; margin-right: 5px"></i>我参与的项目
                </li>
                {% for item in project_user_menu %}
                    <li><a href="{% url 'dashboard' project_id=item.project.id %}">{{ item.project.name }}</a></li>
                {% endfor %}
            {% endif %}


        </ul>
    </li>
</ul>